
$(function () {

    alert("登陆成功！！！！！")

    $("body").css("opacity","1")

    $(".cl_b ul li a").click(function(){
        console.log(1);
        $(".cl_b ul li a").css("background","#e9e9e9")
        $(this).css("background","white");
    });



    var username = localStorage.getItem("username");
    console.log(username);
    $.post("/xjxt/getusername?username="+ username +"",function(res){

        var hehe = JSON.parse(res);
        console.log(hehe);
        $("#rename").html(hehe[0].name);
        $("#gerentupian").attr("src",hehe[0].gerentupian);
    });

    $.post("/xjxt/getxuejiguanli?username="+ username +"",function(res) {

        var hehe = JSON.parse(res);
        console.log(hehe);
        if(hehe.length == 0)
        {
            $("#xuejiguanli").hide()
        }

    });

    $.post("/xjxt/getbiyeshenhe?username="+ username +"",function(res) {

        var hehe = JSON.parse(res);
        console.log(hehe);
        if(hehe.length == 0)
        {
            $("#biyeshenhe").hide()
        }

    });




});